
find_package(PkgConfig REQUIRED)
#pkg_check_modules(GTKMM REQUIRED gtkmm-2.4)
#pkg_check_modules(LIBXMLPP REQUIRED libxml++-2.6)

include_directories(${LIBXMLPP_INCLUDE_DIRS} ${GTKMM_INCLUDE_DIRS} include ${CMAKE_BINARY_DIR}/mathobject/include)
#MESSAGE(STATUS ${CMAKE_BINARY_DIR}/mathobject/include)
link_directories(${LIBXMLPP_LIBRARY_DIRS})

file(
    GLOB_RECURSE
    elements_src
    src/*
)

ADD_LIBRARY(elements STATIC ${elements_src})
#SET_TARGET_PROPERTIES(elements PROPERTIES COMPILE_FLAGS ${LIBXMLPP_CFLAGS})

TARGET_LINK_LIBRARIES(elements mathobject ${LIBXMLPP_LIBRARIES})